package lock.redis;

public interface RedisLock extends AutoCloseable {
    boolean lock(String key);
    boolean lock(String key, long timeOut);

    boolean unlock(String key);
}
